/**
 * <copyright>
 *
 * Copyright (c) 2011 Zeligsoft (2009) Limited
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: 
 *   Zeligsoft (2009) Limited - Initial API and implementation
 *
 * </copyright>
 *
 */
package org.omg.deployment.provider.extended;

import java.util.Collection;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.omg.deployment.InstanceDeploymentDescription;

public class InstanceDeploymentDescriptionConnectionsItemProvider
	extends TransientInstanceDeploymentDescriptionItemProvider {
	public InstanceDeploymentDescriptionConnectionsItemProvider(AdapterFactory adapterFactory, 
			InstanceDeploymentDescription instance) {
		super(adapterFactory, instance);
	}
	
	@Override
	protected Collection<? extends EStructuralFeature> getChildrenFeatures(
			Object object) {
		if(childrenFeatures == null) {
			super.getChildrenFeatures(object);
			childrenFeatures.clear();
		}
		
		return childrenFeatures;
	}
	
	@Override
	public String getText(Object object) {
		return "Connections";
	}
	
	@Override
	public Collection<?> getChildren(Object object) {
		return super.getChildren(object);
	}
}
